package com.gree.elasticsearch.service;

import com.gree.elasticsearch.dao.ToolRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 总有刁民想害朕，请叫我小花狗
 * create by zxw on 2020/5/22
 */
@Service
public class ToolService {
    @Autowired
    private ToolRepository toolRepository;

    @Transactional(transactionManager = "transactionManager")
    public void getToolById() {
        toolRepository.findById(1);
    }

}
